﻿using System;

namespace O1.Kernel.IO.KeyGeneration
{
    public abstract class SequenceProvider<T> : IDisposable where T : struct
    {
        public abstract T Reserve(int rangeSize);

        public void Dispose()
        {
            this.Dispose(true);
            GC.SuppressFinalize(this);
        }

        protected virtual void Dispose(bool disposing)
        {
        }
    }
}